﻿using System.Data;

namespace Codemonk.Common.Data
{
    public interface IDataSetFillble
    {

        DataSet ExecuteSet(IDbConnection connection, string cmdtext, params IDataParameter[] paras);

        DataSet ExecuteSet(IDbConnection connection, string cmdtext, DbParameterBuilder builder);

        DataSet ExecuteSet<T>(IDbConnection connection, string cmdtext, DbParameterBuilder<T> builder) where T : IDataParameter, new();

        DataSet ExecuteSet(string cmdtext, params IDataParameter[] paras);

        DataSet ExecuteSet(string cmdtext, DbParameterBuilder builder);

        DataSet ExecuteSet<T>(string cmdtext, DbParameterBuilder<T> builder) where T : IDataParameter, new();

        DataSet ExecuteSet(IDbCommand cmd);

        DataSet ExecuteSet(IDbDataAdapter adapter);

    }
}
